import type { RouteRecordRaw } from 'vue-router';
import RouterView from '@/layout/routerView/index.vue';
const moduleName = 'SampleOutbound';

const routes: Array<RouteRecordRaw> = [
  {
    path: moduleName,
    name: moduleName,
    component: RouterView,
    meta: {
      title: '样本出库',
      icon: 'icon-warehouseOut',
    },
    children: [
      {
        path: 'out_manage',
        name: 'out_manage',
        component: () => import(/* webpackChunkName: "env_abnormal" */ '../pages/out_manage/index.vue'),
        meta: {
          title: '样本出库',
          keepAlive: false,
        },
      },
      {
        path: 'out_manage_detail',
        name: 'out_manage_detail',
        component: () => import(/* webpackChunkName: "env_abnormal" */ '../pages/out_manage/index.vue'),
        meta: {
          title: '样本出库',
          keepAlive: false,
          hideInMenu: true,
          activeMenu: 'out_record',
        },
      },
      {
        path: 'out_record',
        name: 'out_record',
        component: () => import(/* webpackChunkName: "env_abnormal" */ '../pages/out_record/index.vue'),
        meta: {
          title: '出库记录',
          keepAlive: false,
        },
      },
    ],
  },
];

export default routes;
